//
//  LGRequestable.swift
//  swiftLingo
//
//  Created by lingo on 2017/10/8.
//  Copyright © 2017年 livefor. All rights reserved.
//

import Foundation

enum MethodType {
    case get
    case post
}
protocol LGRequestable {
    var urlString : String{get}
    var type: MethodType{get}
    var parameters: [String : Any]{get}
    func parseResult(_ result: Any)
}

extension LGRequestable {
    func requestData(resultCallBack:@escaping()->()) -> Void {
        self.parseResult("a")
        resultCallBack()
    }
}

